﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="YiCreateWebApp.User.Register" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="../Styles/PageStyle.css" rel="Stylesheet" type="text/css" />
    <title>用户注册</title>
    <style type="text/css">
        .style1
        {
            height: 28px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div>
            <h2 align="center">
                用户注册</h2>
        </div>
        <%--        <div class="register2">
            <ul>
                <li>--%>
        <div>
            <table align="center" style="width: 500px; height: 59px; font-size: 9pt;">
                <tr>
                    <td style="width: 150px; height:19px;">
                        <asp:Label ID="Label1" runat="server" Text="用户名:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUserName"
                            ErrorMessage="*"></asp:RequiredFieldValidator>
                    </td>
                    <td>
                        <asp:LinkButton ID="lnkbtnCheck" runat="server" OnClick="lnkbtnCheck_Click" CausesValidation="False">检测用户名是否存在</asp:LinkButton>
                    </td>
                    <%--                </li>
                <li>--%>
                </tr>
                <tr>
                    <td style="width: 150px; height:19px;">
                        <asp:Label ID="Label2" runat="server" Text="密码："></asp:Label>
                    </td>
                    <td class="style1">
                        <asp:TextBox ID="txtPwd" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPwd"
                            ErrorMessage="*"></asp:RequiredFieldValidator>
                    </td>
                    <td class="style1">
                    </td>
                    <%--                </li>
                <li>--%>
                </tr>
                <tr>
                <td style="width: 150px; height:19px;">
                    <asp:Label ID="Label3" runat="server" Text="确认密码："></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtRePwd" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtRePwd"
                        ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
                <td>
                </td>
                <%--                </li>
                <li>--%>
                </tr>
                <tr>
                    <td style="width: 150px;">
                        <asp:Label ID="Label4" runat="server" Text="Email:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtEmail"
                            ErrorMessage="*"></asp:RequiredFieldValidator>
                    </td>
                    <td>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                            ErrorMessage="Email的格式不正确!" ValidationExpression="\w+([-+.&apos;]\w+)*@\w+([-.]\w+([-.]\w+)*)"></asp:RegularExpressionValidator>
                    </td>
                    <%--                </li>
                <li>--%>
                </tr>
                <tr>
                    <td style="width: 250px;" colspan="3">
                        <asp:Label ID="Label5" runat="server" Text="以上内容为必须填，请正确填写"></asp:Label>
                    </td>
<%--                    <td>
                    </td>
                    <td>
                    </td>--%>
                </tr>
                <%--                </li>
                <li>--%>
                <tr>

                    <td align="center" colspan="3">
                        <asp:Button ID="btnOK" runat="server" Text="确认" OnClick="btnOK_Click" />
                        <asp:Button ID="btnBack" runat="server" Text="返回" CausesValidation="false" OnClick="btnBack_Click" />
                    </td>
                    <td>
                    </td>
                </tr>
                <%--                </li>
                <li>--%>
                <tr>
                <td colspan="3">
                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtPwd"
                    ControlToValidate="txtRePwd" ErrorMessage="两次输入密码不符！"></asp:CompareValidator>
                <%--                </li>
            </ul>--%>
            </td>
            </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
